<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
     let data ={
       name: 'name'

     }
     let proxyData =new Proxy(data,{
       set(target,key,value,receiver) {
         console.log('改变了',receiver);
         // 回复set能力
         return Reflect.set(target,key,value,receiver)
       }
     })
     deleteProperty(target,key)
     {
       return Reflect.deleteProperty(target,key)
     }
     
    </script>
</body>
</html>